<#include "../header.html">
<script type="text/javascript" src="js/datepicker/WdatePicker.js"></script>
<div class="c_nav">
	<span>管理选项：</span>
	<a href="newsAction.do?method=query">管理首页</a>
	<a href="javascript:location.reload()"> | [刷新页面]</a>
</div>
<div class="c_box bg_white">
	<div class="c_topic">资讯列表</div>
    <form name="queryForm" id="queryForm" action="newsAction.do?method=query" method="post">
	<div id="dataQueryArea" class="c_form_6">
		<ul class=" c_form-label-6 l_mb">
			<li>
				<span class="e_label">标题：</span>
				<span class="e_input">
					<input type="text" name="newsTitle" id="newsTitle" desc="标题" value="${newsTitle!}"/>
				</span>
			</li>
			<li>
				<span class="e_label">类型：</span>
				<span class="e_select">
					<select name="ctype" id="ctype" >
						<option value="">全部</option>
						<#list ctypeList as obj>
							<option value="${obj.dataCode!}" <#if ctype?? && ctype?string==obj.dataCode?string> selected="selected" </#if>>${obj.dataName!}</option>
						</#list>
					</select>
				</span>
			</li>
			<li>
				<button type="button" bind="query" bindForm="queryForm" class="l_ml e_btn-form">查询</button>
			</li>
		</ul>
	</div>
    </form>
	<input type="hidden" id="queryParams" name="queryParams" value="${queryParams!}"/>
	<@funcBtn/>
	<!-- 如果需要横向滚动条加c_scroll_tr -->
	<div class="c_table e_center l_mt">
		<table bind="table" checkboxName="dataId" checkAllId="checkedAll">
        	<thead>
			<tr>
				<th><input type="checkbox" id="checkedAll" name="checkedAll"/></th>
				<th>标题</th>
				<th>类型</th>
				<th>描述</th>
				<th>作者</th>
				<th>是否置顶</th>
				<th>排序</th>
				<th>添加时间</th>
			</tr>
            </thead>
            <tbody>
           	<#list list as obj>
            <tr>
            	<td><input type="checkbox" name="dataId" value="${obj.ID!}"></td>
            	<td>${obj.NEWS_TITLE!}</td>
				<td><#list ctypeList as t><#if obj.CTYPE?string == t.dataCode?string>${t.dataName!}</#if></#list></td>
            	<td>${obj.DESCRIBES!}</td>
            	<td>${obj.AUTHOR!}</td>
            	<td><#if obj.IS_TOP?? && obj.IS_TOP == 1>是<#else>否</#if></td>
            	<td>${obj.SORT!}</td>
				<td>${obj.ADD_DATE!}</td>
            <tr>
            </#list>
            </tbody>
		</table>
	</div>	
	<@page/>
</div>
<#include "../footer.html">